package cn.jianyongjie.fallback;

import cn.jianyongjie.domain.User;
import cn.jianyongjie.feignclient.UserFeignClient;
import org.springframework.stereotype.Component;
@Component
public class UserFeignFallback implements UserFeignClient {

    @Override
    public User userById(Long id) {

        return new User(id,"网络异常",404);
    }
}
